package basic.lessons;

public class ABC {


	public static void main(String[] args) {
		String name;
		int i;
		boolean startWord;
		name = "   Richard     M. Nixon    ";
		startWord = true;
		for (i = 0; i < name.length(); i++) {
		   if (startWord)
		      System.out.println(name.charAt(i));
		   if (name.charAt(i) == ' ')
		      startWord = true;
		   else
		      startWord = false;
		}
	}
	

}

